/**
 * Created by CJB on 2017-01-03 10:52:26.
 */


//分页插件
var jqp = null;
//初始化分页
$(function () {
    jqp = $.jqPaginator('#pagination', {
	    visiblePages: 10,
	    currentPage: pageNumber,
	    pageSize: pageSize,
	    totalCounts: totalCount,
	    onPageChange: function (num, type) {
	        if(num != pageNumber)
	            window.location.href = getPath() + "base/findBaseUserRole/" + num +"/"+pageSize + (isFilter ? ("?" + $("#searchForm").serialize()) : "");
	    }
    });
    changeEvenColor("baseUserRoleTable");
    selectAll("baseUserRoleTable");//点击全选,判断是全选还是取消全选
    changTrCss("baseUserRoleTable");//复选框选择改变，设置此行的样式，并判断当前情况是否为全选的情况
    changeTrCheckboxStatu("baseUserRoleTable");//点击一行，改变这行的复选框勾选
    searchBtnClick("base/findBaseUserRole/1/"+pageSize+"?");//点击查询
    addBtnClick("base/showAddBaseUserRoleView");//打开添加窗口
    editBtnClick("baseUserRoleTable","base/showUpdateBaseUserRoleView/");
    deleteData("baseUserRoleTable","base/deleteBaseUserRoleByIds/","base/findBaseUserRole/1/"
    			+ pageSize + (isFilter ? ("?" + $("#searchForm").serialize()) : ""),135);//删除数据
     
    //去除所有控件的虚线框
    removeBlur();
});
